package _15_command_pattern.v2_0;

import _15_command_pattern.v2_0.command.Command;

public class Invoker {
	//什么命令
	private Command command;

	//客户发出命令
	public void setCommand(Command command) {
		this.command = command;
	}

	//执行客户的命令
	public void action() {
		this.command.execute();
	}
}